//
//  ViewController.m
//  16轮播图collection
//
//  Created by dllo on 16/8/4.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "SYCycleImages.h"
@interface ViewController ()
@property (weak, nonatomic) IBOutlet SYCycleImages *cycleImage;

@end






@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    NSMutableArray *array = [NSMutableArray array];
    for (int i = 0; i < 5; i++) {
        [array addObject:[NSString stringWithFormat:@"%d.jpg",i]];
    }
    
    NSString *firstImage = [array firstObject];
    NSString *lastImage = [array lastObject];
    [array insertObject:lastImage atIndex:0];
    [array addObject:firstImage];
    _cycleImage.array = array;
    NSLog(@"%ld",array.count);
    
//    SYCycleImages *cycle = [[SYCycleImages alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width,0)];
//    [self.view addSubview:cycle];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end




